package com.xxx.meter.ui.meter.reading.home;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.xxx.meter.R;
import com.xxx.meter.model.http.bean.MachineChildBean;

import java.util.List;

public class MeterReadingAdapter extends BaseQuickAdapter<MachineChildBean, BaseViewHolder> {

    MeterReadingAdapter(@Nullable List<MachineChildBean> data) {
        super(R.layout.item_machine, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MachineChildBean item) {
        helper.setText(R.id.item_machine_text, item.getName())
                .setImageResource(R.id.item_machine_image, R.mipmap.tag1);
    }
}
